package com.hanliukui.ai.langchain4j.infrastructure.domain.repository;

import com.hanliukui.ai.langchain4j.infrastructure.domain.po.ChatMessagesPo;
import org.springframework.data.jpa.repository.JpaRepository;

public interface ChatMessagesPoRepository extends JpaRepository<ChatMessagesPo, Long> {

    ChatMessagesPo findByMemoryId(String memoryId);

    void deleteByMemoryId(String memoryId);
}
